﻿using System.Web.Mvc;

namespace Janus.Mes.WebClient.Areas.ProductTrace
{
    public class ProductTraceAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "ProductTrace";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
                "ProductTrace_default",
                "ProductTrace/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
            context.MapRoute(
               "ProductTrace_default2",
               "ProductTrace/{controller}/{action}/{id}/{pk2}",
               new { action = "Index", id = UrlParameter.Optional, pk2 = UrlParameter.Optional }
           );
        }
    }
}